#ifndef SCANNER_H
#define SCANNER_H 1

#include "string.h"
#include "dict.h"

#define SCANERR_OK        0
#define SCANERR_NOVALID   1
#define SCANERR_NOTFOUND  2
#define SCANERR_SIMPLETAG 3

#define SCANFLG_DEFAULT   0
#define SCANFLG_TAGONLY   1

int
scan_tag(const char *__tagName, char **__offset, char **__start, size_t *__len, string_t *__dst, uint8_t sflags);

int
scan_tag_attr(char **_offset, dict_t *dst);

void
print_str_cutout(string_t *str, char *sptr, uint8_t max_cutout);

#endif
